home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12903 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.platinum.com!news
  2. From: jlane@brownstone.com (Jason J. Lane)
  3. Newsgroups: comp.lang.c
  4. Subject: Want single character input function for Solaris/UNIX
  5. Date: 2 Apr 1996 16:58:24 GMT
  6. Organization: PLATINUM technology, Inc
  7. Message-ID: <4jrmbg$gkv@news.platinum.com>
  8. Reply-To: jlane@brownstone.com (Jason J. Lane)
  9. NNTP-Posting-Host: ns2-ssn.platinum.com
  10. X-Newsreader: IBM NewsReader/2 v1.9d - NLS
  11.  
  12. Greetings,
  13.  
  14. I need a sample program/snippet that does single character input (raw)
  15. under UNIX.  I'm porting code from OS/2 and it allowed me to use the
  16. getch() function to retrieve a single character and act on it without
  17. having the user hit <ENTER> first.  Basically I'm asking the user for a
  18. password and don't want it to echo to the screen. I know this involves
  19. curses in some manner but I'm not a UNIX guru.
  20.  
  21. TIA!
  22.  
  23. /**********************************************************************
  24. Name:  Jason J. Lane (jlane@brownstone.com)
  25. Org:   PLATINUM technology, inc.
  26. Disc:  My employer is not liable for my actions (duh!)
  27. Quote: The wise man can pick up a grain of sand and envision a whole
  28.        universe.  But the stupid man will just lie down on some seaweed
  29.        and roll around until he's completely draped in it.  Then he'll
  30.        stand up and go, "Hey, I'm Vine Man."
  31. **********************************************************************/
  32.  
  33.